From: Florian Müllner Date: Thu, 12 Feb 2026 13:48:36 +0000 (+0100) Subject: layout: Catch async errors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~26^2~1^2~21 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c89d2061b38aa69f3aaafeb594d598c07b14721b;p=gnome-shell.git layout: Catch async errors It is good practice to avoid "unhandled promise rejection" errors, even when a function is not expected to reject. Part-of: --- diff --git a/js/ui/layout.js b/js/ui/layout.js index 7b8af4726..8f07ac63e 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -610,7 +610,7 @@ export const LayoutManager = GObject.registerClass({ this._updateMonitors(); this._updateBoxes(); this._updateHotCorners(); - this._updateBackgrounds(); + this._updateBackgrounds().catch(logError); this._updateFullscreen(); this._updateVisibility(); this._queueUpdateRegions();